#!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2008 Doug Hellmann All rights reserved.
#
"""
"""

__version__ = "$Id: docket_tags.py 133 2008-09-20 02:34:56Z doug.hellmann $"

# Import system modules

# Import third-party modules
from django import template

# Import local modules

# Module

register = template.Library()

@register.inclusion_tag('docket_search_form_tag.html', takes_context=True)
def search_form(context):
    """Show a search form
    """
    context['search_types'] = ['exact', 'contains', 'soundex', 'metaphone']
    context['search_type'] = context.get('search_type', 'exact')
    return context
